<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>店铺升级</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="__PUBLIC__/wap/js/flexible.js"></script>
<script type="text/javascript" src="__PUBLIC__/wap/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script src="__PUBLIC__/bootstrap/vendor/jquery-validation/jquery.validate.wap.js"></script>
<script type="text/javascript" src="__PUBLIC__/layer/layer.js"></script>
<link href="__PUBLIC__/wap/css/icons.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wap/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wap/css/member.css" />
</head>
<body class="up" ontouchstart="" onmouseover="">
<div class="head">
	<a  href="javascript:history.go(-1);" class="md-close back">
	<i class="iconfont">&#xe617</i>
	</a>
	<h2>店铺升级</h2>
</div>
<div class="page greenbg">
<div class="upstore ">
	<h2>加入FG峰购 即可拥有 个人店铺 200家基地任你经营 </h2>
	<div class="type brdlr floatLft store1" >
		<img src="__PUBLIC__/wap/img/store1.png" alt="标准店铺"/>
		<h4>{$levelinfo.0.levelName}</h4>
		<span class="price">{$levelinfo.0.price}元</span>
		<a href="javascript:void(0);" data="1" class="join">
		我要加盟
		</a>
		<div class="gift" style=" background-image:url(/Public/wap/img/gift1.jpg)"></div>
				<span>开店大礼包</span>

	</div>
	<div class="type brdlr floatLft store2" >
		<img src="__PUBLIC__/wap/img/store2.png" alt=""/>
		<h4>{$levelinfo.1.levelName}</h4>
		<span class="price">{$levelinfo.1.price}元</span>
		<a href="javascript:void(0);" data="2" class="join">
		我要加盟
		</a>
		<div class="gift" style=" background-image:url(/Public/wap/img/gift2.jpg)"></div>
		<span>开店大礼包</span>
	</div>
	<div class="type floatLft store2">
		<img src="__PUBLIC__/wap/img/store3.png" alt=""/>
		<h4>{$levelinfo.2.levelName}</h4>
		<span class="price">免费</span>
		<a  class="atjoin">
		自动升级
		</a>
	</div>
</div>
<div class="clearfix">
</div>
<div class="info" style=" background-color: none">
	<h6 class="green">成功开店后可享受自有店铺销售商品的利润<br>
		推荐店主加入后可获得奖金。</h6>
	<div class="store">
		<h6>不了解商品？不会推广？</h6>
		<h6>FG峰购专业团队为您服务。</h6>
		<p>
			<b>1</b>海量商品任您选<br>
			<b>2</b>权威机构严格认证<br>
			<b>3</b>无需囤货，一件代发。<br>
			<b>4</b>专业讲师培训，手把手教您成交订单。<br>
			<b>5</b>朋友圈推广海报及文案免费提供。<br>
			<b>6</b>商品销售的利润自动结算。<br>
<<<<<<< HEAD
		</p>
		<div class="tip orange">
			亲，只要通过开店资格审核，即成为拿着金钥匙的FG峰购店主喔，终身享有轻松赚大钱的机会，店主身份不能撤销喔。
		</div>
=======
		</p><div class="tip orange">亲，只要通过开店资格审核，即成为拿着金钥匙的FG峰购店主喔，终身享有轻松赚大钱的机会，店主身份不能撤销喔。</div>
>>>>>>> c85d2c5fd4621802fe62ecf014843b0eaad3eab2
	</div>
	
</div></div>
<include file="Public/wap_javascript" />
<if condition="$uid gt 0">
	<script type="text/javascript">
		var binding_is_check=0;// 重复再次弹出 1是 0否
		var binding_page='order_add';// //绑定验证页面
		var return_next = 'join';
	</script>
	<include file="Public/binding_phone"/>
</if>
<script>
	<if condition="$member_info.member_vip_type gt 0">
	var member_vip_type={$member_info.member_vip_type};
	<else/>
	var member_vip_type=0;
	</if>
	
	$(function () {
		//var member_vip_type={$member_info.member_vip_type};
		if(member_vip_type==0){
			$('.store1').show();
		}else if(member_vip_type==1){
			$('.store1').hide();
			$('.store2').css('width','50%');
		}else if (member_vip_type>1){
			$(window).load(function () {
				$('a').attr('href',"{:U('wap/member/index')}");
				window.location.href='{:U("wap/member/index")}';
			});
		}
	});
	var levelId;
	//定义一个产生订单请求的变量
	$(".join").click(function () {
		 levelId=$(this).attr('data');
		if (!levelId) {
			layer.msg('开店信息错误', {icon: 5});
			//alert("商品信息错误");
		} else {
			//binding_is_check = 1;
			setTimeout(function () {
				$.ajax({
					url: "<?php echo U('wap/start/start_set_order'); ?>",
					type: "post",
					data:{'levelId':levelId},
					dataType: 'json',
					target: "#loader",
					error: function () {
						layer.msg("服务器没有返回数据，可能服务器忙，请重试", {icon: 5});
					},
					onwait: "正在处理信息，请稍候...",
					success: function (response) {
						console.log(response);
						if (response.status == 1) {
							window.location.href = "<?php echo U('wap/start/start_pay'); ?>?pay_sn=" + response.pay_sn;
						} else if (response.status == 2) {
							get_binding();
						} else {
							//alert(response.error);
							if (response.error) {
								layer.msg(response.error, {icon: 5});
							} else {
								layer.msg('该订单已提交', {icon: 5});
							}
						}
					}
				});
			}, 300);
		}
	});
</script>
</body>
</html>